<?php
	if( !isset($_SESSION['admin_user_name']) )
	{
		echo "<script>";
		echo "window.location=\"../index.php\";";
		echo "</script>";
	}
?>
<div style="width:120px;float:left:min-height:500px:overflow:auto">
	<div id="main_container" style="width:1022px; margin: 10px auto auto auto;	background-color:#EEE; border:1px solid #ccc;">
		<div class="head" style="background: #fafafa url(plugin/flexigrid/css/images/wbg.gif) repeat-x top;	padding: 5px; border: 1px solid #ccc; border-bottom: 0px; font-size:0.9em;">
			<?php
				if( isset($_SESSION['admin_user_name']) )
				{
					$loginname = $_SESSION['admin_user_name'];
					$logintype = $_SESSION['admin_user_type'];
					echo "Hi, $loginname ($logintype) <a href=\"../logout.php\">Logout</a><br />";
				}
			?>
		</div>
		<div class="line" style="width:auto; height:0; border-bottom:1px solid #F0F0F0; border-top:1px solid #E4E4E4;"></div>
		<div class="row" style="width:100%;	overflow:auto;">
			<div class="button" style="width:1012px; margin: 0 auto 0 auto; padding-top:5px;">
				<a href="../news/index.php">News</a> |
				<a href="../onlinemarket/index.php">Product</a> |
				<a href="../gallery/index.php">Gallery</a> |
				<a href="../content/index.php">Content</a>
			</div>
		</div>
		<div class="line" style="width:auto; height:0; border-bottom:1px solid #F0F0F0; border-top:1px solid #E4E4E4;"></div>
	</div>
</div>